import Vue from 'vue';
import ls from 'store2';

// import htmlToPdf from './htmlToPdf'
// Vue.use(htmlToPdf)

window.document.body.addEventListener('touchmove', function(e) {
	e.preventDefault();
}, {
	passive: false
});

var commonJs = {
	install(Vue) {
		Vue.prototype.commonJs = {
			gosback: function(routerName, queryData) {
				window.$nuxt.$router.go(-1)

			},
			gosto: function(routerName, queryData) {

				window.$nuxt.$router.replace({
					path: routerName,
					query: {
						type: queryData
					}
				})

			},
			gopush: function(routerName, queryData) {

				window.$nuxt.$router.push({
					path: routerName,
					query: {
						type: queryData
					}
				})

			},



	};

	}

}
Vue.use(commonJs)
